<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>dil.SourceText</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "dil.SourceText";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/dil.SourceText.html" class="symbol">dil.SourceText</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> high.</p>
<dl>
<dt class="decl">class <a class="symbol _class" name="SourceText" href="./htmlsrc/dil.SourceText.html#L17" kind="class" beg="17" end="77">SourceText</a>; <span class="attrs">[<span class="stc">final</span>]</span> <a title="Permalink to this symbol" href="#SourceText" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.SourceText.html#L17">#</a></dt>
<dd class="ddef">
<div class="summary">Represents D source code.</div>
The source text may come from a file or from a memory buffer.
<dl>
<dt class="decl">string <a class="symbol _variable" name="SourceText.filePath" href="./htmlsrc/dil.SourceText.html#L20" kind="variable" beg="20" end="20">filePath</a>; <a title="Permalink to this symbol" href="#SourceText.filePath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.SourceText.html#L20">#</a></dt>
<dd class="ddef">
<div class="summary">The file path to the source text. Mainly used for error messages.</div></dd>
<dt class="decl">char[] <a class="symbol _variable" name="SourceText.data" href="./htmlsrc/dil.SourceText.html#L21" kind="variable" beg="21" end="21">data</a>; <a title="Permalink to this symbol" href="#SourceText.data" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.SourceText.html#L21">#</a></dt>
<dd class="ddef">
<div class="summary">The UTF-8, zero-terminated source text.</div></dd>
<dt class="decl"><a class="symbol _ctor" name="SourceText.this" href="./htmlsrc/dil.SourceText.html#L27" kind="ctor" beg="27" end="31">this</a><span class="params">(string <em>filePath</em>, bool <em>loadFile</em> = false)</span>; <a title="Permalink to this symbol" href="#SourceText.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.SourceText.html#L27">#</a></dt>
<dd class="ddef">
<div class="summary">Constructs a SourceText object.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>filePath</em></td><td>file path to the source file.</td></tr>
<tr><td><em>loadFile</em></td><td>whether to load the file in the constructor.</td></tr></table></dd>
<dt class="decl"><a class="symbol _ctor" name="SourceText.this:2" href="./htmlsrc/dil.SourceText.html#L37" kind="ctor" beg="37" end="42">this</a><span class="params">(string <em>filePath</em>, char[] <em>data</em>)</span>; <a title="Permalink to this symbol" href="#SourceText.this:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.SourceText.html#L37">#</a></dt>
<dd class="ddef">
<div class="summary">Constructs a SourceText object.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>filePath</em></td><td>file path for error messages.</td></tr>
<tr><td><em>data</em></td><td>memory buffer.</td></tr></table></dd>
<dt class="decl">void <a class="symbol _function" name="SourceText.load" href="./htmlsrc/dil.SourceText.html#L45" kind="function" beg="45" end="69">load</a><span class="params">(Diagnostics <em>diag</em> = null)</span>; <a title="Permalink to this symbol" href="#SourceText.load" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.SourceText.html#L45">#</a></dt>
<dd class="ddef">
<div class="summary">Loads the source text from a file.</div></dd>
<dt class="decl">void <a class="symbol _function" name="SourceText.addSentinelCharacter" href="./htmlsrc/dil.SourceText.html#L72" kind="function" beg="72" end="76">addSentinelCharacter</a><span class="params">()</span>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#SourceText.addSentinelCharacter" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.SourceText.html#L72">#</a></dt>
<dd class="ddef">
<div class="summary">Adds '\0' to the text (if not already there.)</div></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:54 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>